import { axios } from "@/utils/request";
import { baseUrl } from "@/services/baseUrl";

//查询操作权限
export function getTaskPermission(params) {
  return axios({
    url: baseUrl + `/probusiness/zhgdCheck/getTaskPermission`,
    method: "GET",
    headers: {
      "Content-Type": "application/json;charset=UTF-8",
    },
    params,
  });
}

//隐患排查-分页数据
export function pageHazard(data) {
  let { page, pageSize } = data;
  return axios({
    url:
      baseUrl +
      `/probusiness/zhgdCheck/getPageSet?pageNo=${page}&pageSize=${pageSize}&order=desc&sort=createTime`,
    method: "POST",
    headers: {
      "Content-Type": "application/json;charset=UTF-8",
    },
    data,
  });
}
//隐患排查-删除
export function deleteHazard(data) {
  let { uuid } = data;
  return axios({
    url: baseUrl + `/probusiness/zhgdCheck/deleteCheckData?uuid=${uuid}`,
    method: "POST",
    headers: {
      "Content-Type": "application/json;charset=UTF-8",
    },
  });
}
//隐患排查-提交
export function submitHazard(data) {
  let { uuid } = data;
  return axios({
    url: baseUrl + `/probusiness/zhgdCheck/approveCheckData?uuid=${uuid}`,
    method: "POST",
    headers: {
      "Content-Type": "application/json;charset=UTF-8",
    },
  });
}

//隐患排查-问题整改信息列表
export function pageCheckUnit(data) {
  let { page, pageSize } = data;
  return axios({
    url:
      baseUrl +
      `/probusiness/zhgdCheck/getCheckUnitPageSet?pageNo=${page}&pageSize=${pageSize}&order=desc&sort=createTime`,
    method: "POST",
    headers: {
      "Content-Type": "application/json;charset=UTF-8",
    },
    data,
  });
}

//隐患排查-问题整改-问题清单下载
export function downloadQD(params) {
  return axios({
    url: baseUrl + `/probusiness/zhgdCheck/downloadQD`,
    method: "GET",
    apiType: "file",
    responseType: "arraybuffer",
    params,
  });
}

//隐患排查-问题整改-整改回复下载
export function downloadZG(params) {
  return axios({
    url: baseUrl + `/probusiness/zhgdCheck/downloadZG`,
    method: "GET",
    apiType: "file",
    responseType: "arraybuffer",
    params,
  });
}
//隐患排查-详情
export function detailHazard(data) {
  let { uuid } = data;
  return axios({
    url: baseUrl + `/probusiness/zhgdCheck/getDetailByUuid?uuid=${uuid}`,
    method: "POST",
    headers: {
      "Content-Type": "application/json;charset=UTF-8",
    },
  });
}
//隐患排查-问题整改-查看列表
export function pageCheckIssue(data) {
  let { page, pageSize } = data;
  return axios({
    url:
      baseUrl +
      `/probusiness/zhgdCheckIssue/getPageSet?pageNo=${page}&pageSize=${pageSize}&order=desc&sort=createTime`,
    method: "POST",
    headers: {
      "Content-Type": "application/json;charset=UTF-8",
    },
    data,
  });
}
//隐患排查-问题整改-查看列表-删除
export function deleteCheckIssue(data) {
  let { uuid } = data;
  return axios({
    url: baseUrl + `/probusiness/zhgdCheckIssue/deleteBatch?uuids=${uuid}`,
    method: "POST",
    headers: {
      "Content-Type": "application/json;charset=UTF-8",
    },
  });
}
//隐患排查-问题整改-查看列表-提交
export function submitCheckIssue(data) {
  let { uuid } = data;
  return axios({
    url: baseUrl + `/probusiness/zhgdCheckIssue/approveCheckData?uuid=${uuid}`,
    method: "POST",
    headers: {
      "Content-Type": "application/json;charset=UTF-8",
    },
  });
}

//季度检查-新增
export function saveOrUpdateQuarter(data) {
  return axios({
    url: baseUrl + "/probusiness/zhgdQuarterCheck/saveOrUpdate",
    method: "POST",
    headers: {
      "Content-Type": "application/json;charset=UTF-8",
    },
    data,
  });
}
//季度检查-分页数据
export function pageQuarter(data) {
  let { page, pageSize } = data;
  return axios({
    url:
      baseUrl +
      `/probusiness/zhgdQuarterCheck/getPageSet?pageNo=${page}&pageSize=${pageSize}&order=desc&sort=createTime`,
    method: "POST",
    headers: {
      "Content-Type": "application/json;charset=UTF-8",
    },
    data,
  });
}
//季度检查-详情
export function detailQuarter(data) {
  let { uuid } = data;
  return axios({
    url: baseUrl + `/probusiness/zhgdQuarterCheck/getDetailByUuid?uuid=${uuid}`,
    method: "POST",
    headers: {
      "Content-Type": "application/json;charset=UTF-8",
    },
  });
}
//季度检查-删除
export function deleteQuarter(data) {
  let { uuid } = data;
  return axios({
    url: baseUrl + `/probusiness/zhgdQuarterCheck/deleteBatch?uuids=${uuid}`,
    method: "POST",
    headers: {
      "Content-Type": "application/json;charset=UTF-8",
    },
  });
}

//季度检查-项目评分排名
export function pageProScore(data) {
  return axios({
    url:
      baseUrl +
      `/probusiness/zhgdQuarterCheckScore/getPageSet?pageNo=1&pageSize=200&order=asc&sort=sort`,
    method: "POST",
    headers: {
      "Content-Type": "application/json;charset=UTF-8",
    },
    data,
  });
}
//季度检查-提交
export function submitQuarter(data) {
  let { uuid } = data;
  return axios({
    url: baseUrl + `/probusiness/zhgdQuarterCheck/submitData?uuid=${uuid}`,
    method: "POST",
    headers: {
      "Content-Type": "application/json;charset=UTF-8",
    },
  });
}

//季度检查-统计数据
export function statisticsQuarter(data) {
  return axios({
    url: baseUrl + `/probusiness/zhgdQuarterCheck/statisticsData`,
    method: "POST",
    headers: {
      "Content-Type": "application/json;charset=UTF-8",
    },
    data,
  });
}

//季度检查-项目整改情况表-列表
export function rectifySituationFileList(data) {
  let { checkId } = data;
  return axios({
    url:
      baseUrl +
      `/probusiness/zhgdQuarterCheckIssue/rectifySituationFileList?checkId=${checkId}`,
    method: "POST",
    headers: {
      "Content-Type": "application/json;charset=UTF-8",
    },
  });
}
//季度检查-项目整改情况表-上传
export function rectifySaveFile(data) {
  return axios({
    url: baseUrl + `/probusiness/zhgdQuarterCheckIssue/uploadFile`,
    method: "POST",
    headers: {
      "Content-Type": "application/json;charset=UTF-8",
    },
    data,
  });
}
//季度检查-项目整改情况表-压缩包下载
export function downloadRectifyZip(data) {
  let { checkId } = data;
  return axios({
    url:
      baseUrl +
      `/probusiness/zhgdQuarterCheckIssue/downLoadRectifySituationFile?checkId=${checkId}`,
    method: "POST",
    apiType: "file",
    responseType: "arraybuffer",
  });
}
//季度检查-项目整改情况表-提交
export function submitRectify(data) {
  let { uuid } = data;
  return axios({
    url: baseUrl + `/probusiness/zhgdQuarterCheckIssue/submitData?uuid=${uuid}`,
    method: "POST",
    headers: {
      "Content-Type": "application/json;charset=UTF-8",
    },
  });
}

//质量监督-列表
export function pageStartPlan(data) {
  let { page, pageSize } = data;
  return axios({
    url:
      baseUrl +
      `/probusiness/projectStartPrepare/getPageSet?pageNo=${page}&pageSize=${pageSize}&order=desc&sort=createTime`,
    method: "POST",
    headers: {
      "Content-Type": "application/json;charset=UTF-8",
    },
    data,
  });
}
//质量监督-删除
export function deleteStartPlan(data) {
  let { uuid } = data;
  return axios({
    url: baseUrl + `/probusiness/projectStartPrepare/deleteBatch?uuids=${uuid}`,
    method: "POST",
    headers: {
      "Content-Type": "application/json;charset=UTF-8",
    },
  });
}

//开工准备-详情
export function detailStartPlan(data) {
  let { uuid } = data;
  return axios({
    url:
      baseUrl + `/probusiness/projectStartPrepare/getDetailByUuid?uuid=${uuid}`,
    method: "POST",
    headers: {
      "Content-Type": "application/json;charset=UTF-8",
    },
  });
}
//开工准备-压缩包下载
export function downloadStartPlanZip(data) {
  let { uuid, type } = data;
  return axios({
    url:
      baseUrl +
      `/probusiness/projectStartPrepare/downFile?uuid=${uuid}&type=${type}`,
    method: "POST",
    apiType: "file",
    responseType: "arraybuffer",
  });
}

//建设程序-配置项树形列表
export function getTreeConfig(data) {
  let { type } = data;
  return axios({
    url:
      baseUrl +
      `/probusiness/constructionProgramConfig/getTreeList?type=${type}`,
    method: "POST",
    headers: {
      "Content-Type": "application/json;charset=UTF-8",
    },
  });
}
//建设程序-新增
export function saveOrUpdateConstruction(data) {
  return axios({
    url: baseUrl + "/probusiness/constructionProgram/saveOrUpdate",
    method: "POST",
    headers: {
      "Content-Type": "application/json;charset=UTF-8",
    },
    data,
  });
}
//建设程序-分页数据
export function pageConstruction(data) {
  let { page, pageSize } = data;
  return axios({
    url:
      baseUrl +
      `/probusiness/constructionProgram/getPageSet?pageNo=${page}&pageSize=${pageSize}&order=desc&sort=createTime`,
    method: "POST",
    headers: {
      "Content-Type": "application/json;charset=UTF-8",
    },
    data,
  });
}

//建设程序-删除
export function deleteConstruction(data) {
  let { uuid } = data;
  return axios({
    url: baseUrl + `/probusiness/constructionProgram/deleteBatch?uuids=${uuid}`,
    method: "POST",
    headers: {
      "Content-Type": "application/json;charset=UTF-8",
    },
  });
}
//建设程序-详情
export function detailConstruction(data) {
  let { uuid } = data;
  return axios({
    url:
      baseUrl + `/probusiness/constructionProgram/getDetailByUuid?uuid=${uuid}`,
    method: "POST",
    headers: {
      "Content-Type": "application/json;charset=UTF-8",
    },
  });
}
//建设程序-文件上传-详情
export function detailHasData(data) {
  let { uuid } = data;
  return axios({
    url:
      baseUrl +
      `/probusiness/constructionProgram/getDetailByUuidHasData?uuid=${uuid}`,
    method: "POST",
    headers: {
      "Content-Type": "application/json;charset=UTF-8",
    },
  });
}
//建设程序-文件上传-保存
export function saveOrUpdateHasData(data) {
  return axios({
    url: baseUrl + "/probusiness/constructionProgram/saveOrUpdateFile",
    method: "POST",
    headers: {
      "Content-Type": "application/json;charset=UTF-8",
    },
    data,
  });
}

//建设程序-文件上传-确认
export function updateStatusHasData(data) {
  return axios({
    url: baseUrl + "/probusiness/constructionProgram/updateStatus",
    method: "POST",
    headers: {
      "Content-Type": "application/json;charset=UTF-8",
    },
    data,
  });
}
//建设程序-提交
export function submitStatusHasData(data) {
  let { uuid } = data;
  return axios({
    url: baseUrl + `/probusiness/constructionProgram/submit?uuid=${uuid}`,
    method: "POST",
    headers: {
      "Content-Type": "application/json;charset=UTF-8",
    },
  });
}

//验收报告
export function saveOrUpdateAcceptanceReport(data) {
  return axios({
    url:
      baseUrl + "/probusiness/constructionProgram/saveOrUpdateAcceptanceReport",
    method: "POST",
    headers: {
      "Content-Type": "application/json;charset=UTF-8",
    },
    data,
  });
}

//建设程序-通知人配置
export function pageNotice(data) {
  let { page, pageSize } = data;
  return axios({
    url:
      baseUrl +
      `/probusiness/configNotifier/getPageSet?pageNo=${page}&pageSize=${pageSize}&order=asc&sort=sort`,
    method: "POST",
    headers: {
      "Content-Type": "application/json;charset=UTF-8",
    },
    data,
  });
}
//建设程序-通知人配置-保存
export function saveNotice(data) {
  return axios({
    url: baseUrl + `/probusiness/configNotifier/update`,
    method: "POST",
    headers: {
      "Content-Type": "application/json;charset=UTF-8",
    },
    data,
  });
}

//项目档案管理-分页
export function pageArchiveConfig(data) {
  let { page, pageSize } = data;
  return axios({
    url:
      baseUrl +
      `/probusiness/finalDocumentMain/getPageSet?pageNo=${page}&pageSize=${pageSize}`,
    method: "POST",
    headers: {
      "Content-Type": "application/json;charset=UTF-8",
    },
    data,
  });
}
//项目档案管理-删除
export function deleteArchiveConfig(data) {
  let { uuid } = data;
  return axios({
    url: baseUrl + `/probusiness/finalDocumentMain/deleteData?uuid=${uuid}`,
    method: "POST",
    headers: {
      "Content-Type": "application/json;charset=UTF-8",
    },
  });
}
//项目档案管理-导入导出权限
export function getButtonAuth(data) {
  let { proCode, type } = data;
  return axios({
    url:
      baseUrl +
      `/probusiness/finalDocumentClassify/getButtonAuth?proCode=${proCode}&type=${type}`,
    method: "POST",
    headers: {
      "Content-Type": "application/json;charset=UTF-8",
    },
  });
}
//项目档案管理-左侧树
export function getConfigTree(data) {
  return axios({
    url: baseUrl + `/probusiness/finalDocumentClassify/getTreeByProCode`,
    method: "POST",
    headers: {
      "Content-Type": "application/json;charset=UTF-8",
    },
    data,
  });
}

//项目档案管理-保存
export function saveConfigTree(data) {
  return axios({
    url: baseUrl + `/probusiness/finalDocumentClassify/save`,
    method: "POST",
    headers: {
      "Content-Type": "application/json;charset=UTF-8",
    },
    data,
  });
}
//项目档案管理-删除
export function deleteConfigTree(data) {
  let { uuid } = data;
  return axios({
    url: baseUrl + `/probusiness/finalDocumentClassify/deleteData?uuid=${uuid}`,
    method: "POST",
    headers: {
      "Content-Type": "application/json;charset=UTF-8",
    },
  });
}

//项目档案管理-详情
export function detailConfigTree(data) {
  let { uuid } = data;
  return axios({
    url:
      baseUrl +
      `/probusiness/finalDocumentClassify/getDetailByUuid?uuid=${uuid}`,
    method: "POST",
    headers: {
      "Content-Type": "application/json;charset=UTF-8",
    },
  });
}

//项目档案管理-更新
export function updateConfigTree(data) {
  return axios({
    url: baseUrl + `/probusiness/finalDocumentClassify/update`,
    method: "POST",
    headers: {
      "Content-Type": "application/json;charset=UTF-8",
    },
    data,
  });
}

//项目档案管理-下载模版
export function downloadConfigTreeTemplate() {
  return axios({
    url: baseUrl + `/probusiness/finalDocumentClassify/downloadTemplate`,
    method: "GET",
    apiType: "file",
    responseType: "arraybuffer",
  });
}
//项目档案管理-导入模版
export function importConfigTreeExcel(file, proCode, callback) {
  return axios({
    url:
      baseUrl +
      `/probusiness/finalDocumentClassify/importExcel?proCode=${proCode}`,
    method: "POST",
    headers: {
      "Content-Type": "multipart/form-data",
    },
    data: file,
    // onUploadProgress: (progressEvent) => {
    //   let persent = ((progressEvent.loaded / progressEvent.total) * 100) | 0; //上传进度百分比
    //   callback(persent);
    // },
  });
}
//项目档案管理-批量导出-压缩包
export function exportConfigTreeZip(data) {
  let { proCode, type } = data;
  return axios({
    url:
      baseUrl +
      `/probusiness/finalDocumentClassify/exportExcel?proCode=${proCode}&type=${type}`,
    method: "POST",
    apiType: "file",
    responseType: "arraybuffer",
  });
}
//项目档案管理-批量导出-excel
export function exportConfigTreeExcel(data) {
  let { proCode, type } = data;
  return axios({
    url:
      baseUrl +
      `/probusiness/finalDocumentClassify/exportExcelPZ?proCode=${proCode}&type=${type}`,
    method: "POST",
    apiType: "file",
    responseType: "arraybuffer",
  });
}

//档案目录-保存
export function saveFilesDirectory(data) {
  return axios({
    url: baseUrl + `/probusiness/finalDocumentDirectory/save`,
    method: "POST",
    headers: {
      "Content-Type": "application/json;charset=UTF-8",
    },
    data,
  });
}
//档案目录-更新
export function updateFilesDirectory(data) {
  return axios({
    url: baseUrl + `/probusiness/finalDocumentDirectory/update`,
    method: "POST",
    headers: {
      "Content-Type": "application/json;charset=UTF-8",
    },
    data,
  });
}
//档案目录-详情
export function detailFilesDirectory(data) {
  let { uuid } = data;
  return axios({
    url:
      baseUrl +
      `/probusiness/finalDocumentDirectory/getDetailByUuid?uuid=${uuid}`,
    method: "POST",
    headers: {
      "Content-Type": "application/json;charset=UTF-8",
    },
  });
}

//档案目录-分页
export function pageFilesDirectory(data) {
  let { classifyId } = data;
  return axios({
    url:
      baseUrl +
      `/probusiness/finalDocumentDirectory/getListByClassifyId?classifyId=${classifyId}`,
    method: "POST",
    headers: {
      "Content-Type": "application/json;charset=UTF-8",
    },
  });
}
//档案目录-删除
export function deleteFilesDirectory(data) {
  let { uuid } = data;
  return axios({
    url:
      baseUrl + `/probusiness/finalDocumentDirectory/deleteData?uuid=${uuid}`,
    method: "POST",
    headers: {
      "Content-Type": "application/json;charset=UTF-8",
    },
  });
}

//卷内目录-分页
export function pageVolume(data) {
  let { page, pageSize } = data;
  return axios({
    url:
      baseUrl +
      `/probusiness/finalDocumentFile/getPageSet?pageNo=${page}&pageSize=${pageSize}`,
    method: "POST",
    headers: {
      "Content-Type": "application/json;charset=UTF-8",
    },
    data,
  });
}
//卷内目录-删除
export function deleteVolume(data) {
  let { uuid } = data;
  return axios({
    url: baseUrl + `/probusiness/finalDocumentFile/deleteData?uuid=${uuid}`,
    method: "POST",
    headers: {
      "Content-Type": "application/json;charset=UTF-8",
    },
  });
}
//卷内目录-保存
export function saveVolume(data) {
  return axios({
    url: baseUrl + `/probusiness/finalDocumentFile/save`,
    method: "POST",
    headers: {
      "Content-Type": "application/json;charset=UTF-8",
    },
    data,
  });
}
//卷内目录-更新
export function updateVolume(data) {
  return axios({
    url: baseUrl + `/probusiness/finalDocumentFile/update`,
    method: "POST",
    headers: {
      "Content-Type": "application/json;charset=UTF-8",
    },
    data,
  });
}
//卷内目录-详情
export function detailVolume(data) {
  let { uuid } = data;
  return axios({
    url:
      baseUrl + `/probusiness/finalDocumentFile/getDetailByUuid?uuid=${uuid}`,
    method: "POST",
    headers: {
      "Content-Type": "application/json;charset=UTF-8",
    },
  });
}

//反馈列表
export function feedBackList(data) {
  let { proCode } = data;
  return axios({
    url:
      baseUrl +
      `/probusiness/finalDocumentFileFeedback/getList?proCode=${proCode}`,
    method: "POST",
    headers: {
      "Content-Type": "application/json;charset=UTF-8",
    },
  });
}
//反馈列表-新增
export function addFeedBack(data) {
  return axios({
    url: baseUrl + `/probusiness/finalDocumentFileFeedback/save`,
    method: "POST",
    headers: {
      "Content-Type": "application/json;charset=UTF-8",
    },
    data,
  });
}

//反馈列表-删除
export function delFeedBack(data) {
  let { uuid } = data;
  return axios({
    url:
      baseUrl +
      `/probusiness/finalDocumentFileFeedback/deleteData?uuid=${uuid}`,
    method: "POST",
    headers: {
      "Content-Type": "application/json;charset=UTF-8",
    },
  });
}

//检索/引用-列表
export function retrievalList(data) {
  return axios({
    url: baseUrl + `/probusiness/documentProjectMaterialFile/getZskPageSet`,
    method: "POST",
    headers: {
      "Content-Type": "application/json;charset=UTF-8",
    },
    data,
  });
}

//月度例会管理员-列表
export function pageMonthlyMeeting(data) {
  let { page, pageSize } = data;
  return axios({
    url:
      baseUrl +
      `/probusiness/monthlyMeetings/getPageSet?pageNo=${page}&pageSize=${pageSize}`,
    method: "POST",
    headers: {
      "Content-Type": "application/json;charset=UTF-8",
    },
    data,
  });
}
//月度例会管理员-新增/编辑
export function glyMeetingSaveOrUpdate(data) {
  return axios({
    url: baseUrl + `/probusiness/monthlyMeetings/saveGLYData`,
    method: "POST",
    headers: {
      "Content-Type": "application/json;charset=UTF-8",
    },
    data,
  });
}
//月度例会管理员-不可选择的月份
export function getGLYDisabledMonth(data) {
  return axios({
    url: baseUrl + `/probusiness/monthlyMeetings/getGLYDisabledMonth`,
    method: "POST",
    headers: {
      "Content-Type": "application/json;charset=UTF-8",
    },
    data,
  });
}

//月度例会管理员-详情
export function getGLYDetailByMonth(data) {
  return axios({
    url: baseUrl + `/probusiness/monthlyMeetings/getGLYDetailByMonth`,
    method: "POST",
    headers: {
      "Content-Type": "application/json;charset=UTF-8",
    },
    data,
  });
}
//月度例会管理员-领导点评
export function saveLeaderComment(data) {
  return axios({
    url: baseUrl + `/probusiness/monthlyMeetings/leaderComment`,
    method: "POST",
    headers: {
      "Content-Type": "application/json;charset=UTF-8",
    },
    data,
  });
}

//月度例会管理员-删除
export function deleteDataByMonth(data) {
  return axios({
    url: baseUrl + `/probusiness/monthlyMeetings/deleteDataByMonth`,
    method: "POST",
    headers: {
      "Content-Type": "application/json;charset=UTF-8",
    },
    data,
  });
}
//月度例会填报人-上月交办事项详情
export function getTBRTaskDetailByMonth(data) {
  return axios({
    url: baseUrl + `/probusiness/monthlyMeetings/getTBRTaskDetailByMonth`,
    method: "POST",
    headers: {
      "Content-Type": "application/json;charset=UTF-8",
    },
    data,
  });
}
//月度例会填报人-上月交办事项保存
export function saveTBRTaskData(data) {
  return axios({
    url: baseUrl + `/probusiness/monthlyMeetings/saveTBRTaskData`,
    method: "POST",
    headers: {
      "Content-Type": "application/json;charset=UTF-8",
    },
    data,
  });
}
//月度例会填报人-本月重点工程进展详情
export function getTBRDetailByMonth(data) {
  return axios({
    url: baseUrl + `/probusiness/monthlyMeetings/getTBRDetailByMonth`,
    method: "POST",
    headers: {
      "Content-Type": "application/json;charset=UTF-8",
    },
    data,
  });
}
//月度例会填报人-本月重点工程进展保存
export function saveTBRData(data) {
  return axios({
    url: baseUrl + `/probusiness/monthlyMeetings/saveTBRData`,
    method: "POST",
    headers: {
      "Content-Type": "application/json;charset=UTF-8",
    },
    data,
  });
}

//月度例会管理员-例会文件管理详情
export function getMeetingFileByMonth(data) {
  return axios({
    url: baseUrl + `/probusiness/monthlyMeetings/getMeetingFileByMonth`,
    method: "POST",
    headers: {
      "Content-Type": "application/json;charset=UTF-8",
    },
    data,
  });
}
//月度例会管理员-例会文件管理保存
export function saveSortData(data) {
  return axios({
    url: baseUrl + `/probusiness/monthlyMeetings/saveSortData`,
    method: "POST",
    headers: {
      "Content-Type": "application/json;charset=UTF-8",
    },
    data,
  });
}

//月报管理-列表
export function pageMonthlyManage(data) {
  let { page, pageSize } = data;
  return axios({
    url:
      baseUrl +
      `/probusiness/monthlyReportManagement/getPageSet?pageNo=${page}&pageSize=${pageSize}`,
    method: "POST",
    headers: {
      "Content-Type": "application/json;charset=UTF-8",
    },
    data,
  });
}
//月报管理-新增/编辑
export function saveOrUpdateMonthlyManage(data) {
  return axios({
    url: baseUrl + `/probusiness/monthlyReportManagement/saveOrUpdateData`,
    method: "POST",
    headers: {
      "Content-Type": "application/json;charset=UTF-8",
    },
    data,
  });
}
//月报管理-详情
export function detailMonthlyManage(data) {
  let { uuid } = data;
  return axios({
    url:
      baseUrl +
      `/probusiness/monthlyReportManagement/getDetailByUuid?uuid=${uuid}`,
    method: "POST",
    headers: {
      "Content-Type": "application/json;charset=UTF-8",
    },
    data,
  });
}
//月报管理-删除
export function deleteMonthlyManage(data) {
  let { uuid } = data;
  return axios({
    url:
      baseUrl +
      `/probusiness/monthlyReportManagement/deleteByUuid?uuid=${uuid}`,
    method: "POST",
    headers: {
      "Content-Type": "application/json;charset=UTF-8",
    },
    data,
  });
}

//月报填写-新增/编辑
export function saveOrUpdateFillData(data) {
  return axios({
    url: baseUrl + `/probusiness/monthlyReportManagement/saveOrUpdateFillData`,
    method: "POST",
    headers: {
      "Content-Type": "application/json;charset=UTF-8",
    },
    data,
  });
}
//月报填写-详情
export function getFillDetailByUuid(data) {
  let { uuid } = data;
  return axios({
    url:
      baseUrl +
      `/probusiness/monthlyReportManagement/getFillDetailByUuid?uuid=${uuid}`,
    method: "POST",
    headers: {
      "Content-Type": "application/json;charset=UTF-8",
    },
    data,
  });
}
//月报填写-提交
export function submitMonthlWrite(data) {
  let { uuid } = data;
  return axios({
    url:
      baseUrl +
      `/probusiness/monthlyReportManagement/submitByUuid?uuid=${uuid}`,
    method: "POST",
    headers: {
      "Content-Type": "application/json;charset=UTF-8",
    },
    data,
  });
}

//月报汇总-新增编辑
export function saveOrUpdateSummary(data) {
  return axios({
    url: baseUrl + `/probusiness/monthlyReportSummary/saveOrUpdateSummary`,
    method: "POST",
    headers: {
      "Content-Type": "application/json;charset=UTF-8",
    },
    data,
  });
}

//月报汇总-提交
export function submitSummary(params) {
  return axios({
    url: baseUrl + `/probusiness/monthlyReportSummary/submitSummary`,
    method: "GET",
    headers: {
      "Content-Type": "application/json;charset=UTF-8",
    },
    params,
  });
}

//开工准备-列表
export function pageStartPrepare(data) {
  let { page, pageSize } = data;
  return axios({
    url:
      baseUrl +
      `/probusiness/projectStartPre/getPageSet?pageNo=${page}&pageSize=${pageSize}&order=desc&sort=createTime`,
    method: "POST",
    headers: {
      "Content-Type": "application/json;charset=UTF-8",
    },
    data,
  });
}
//勘测管理-列表
export function pageSurveyManage(data) {
  let { page, pageSize } = data;
  return axios({
    url:
      baseUrl +
      `/probusiness/managementSurveyDatabase/getPageSet?pageNo=${page}&pageSize=${pageSize}&order=desc&sort=createTime`,
    method: "POST",
    headers: {
      "Content-Type": "application/json;charset=UTF-8",
    },
    data,
  });
}
//勘测管理-删除
export function deleteSurveyManage(data) {
  let { uuid } = data;
  return axios({
    url:
      baseUrl +
      `/probusiness/managementSurveyDatabase/deleteBatch?uuids=${uuid}`,
    method: "POST",
    headers: {
      "Content-Type": "application/json;charset=UTF-8",
    },
  });
}

//质量监督-删除
export function deleteStartPrepare(data) {
  let { uuid } = data;
  return axios({
    url: baseUrl + `/probusiness/projectStartPre/deleteBatch?varchar=${uuid}`,
    method: "POST",
    headers: {
      "Content-Type": "application/json;charset=UTF-8",
    },
  });
}
//月报管理-下载模版
export function monthlyReportUserTemplate() {
  return axios({
    url: baseUrl + `/probusiness/monthlyReportManagement/downloadTemplate`,
    method: "GET",
    apiType: "file",
    responseType: "arraybuffer",
  });
}
//月报管理-批量导入
export function monthlyReportUserImport(file) {
  return axios({
    url: baseUrl + `/probusiness/monthlyReportManagement/importUserFile`,
    method: "POST",
    headers: {
      "Content-Type": "multipart/form-data",
    },
    data: file,
  });
}
//月度例会-项目列表
export function getProjectList(data = {}) {
  return axios({
    url: baseUrl + `/mdata/sysProject/getProListByProStatus`,
    method: "POST",
    headers: {
      "Content-Type": "application/json;charset=UTF-8",
    },
    data,
  });
}

//汇总分析
export function getSummaryAnalysis(data) {
  return axios({
    url: baseUrl + `/probusiness/monthlyMeetings/statistics`,
    method: "POST",
    headers: {
      "Content-Type": "application/json;charset=UTF-8",
    },
    data,
  });
}

//汇总分析-打回
export function repulseSummaryAnalysis(data) {
  let { uuid } = data;
  return axios({
    url: baseUrl + `/probusiness/monthlyMeetings/repulse?uuid=${uuid}`,
    method: "POST",
    headers: {
      "Content-Type": "application/json;charset=UTF-8",
    },
    data: {},
  });
}

//汇总分析-提醒
export function remindSummaryAnalysis(data) {
  return axios({
    url: baseUrl + `/probusiness/monthlyMeetings/sendNotice`,
    method: "POST",
    headers: {
      "Content-Type": "application/json;charset=UTF-8",
    },
    data,
  });
}
//汇总分析-修改排序
export function setSortSummaryAnalysis(data) {
  let { uuid, sort } = data;
  return axios({
    url:
      baseUrl +
      `/probusiness/monthlyMeetings/setSort?uuid=${uuid}&sort=${sort}`,
    method: "POST",
    headers: {
      "Content-Type": "application/json;charset=UTF-8",
    },
    data: {},
  });
}
